//
//  JMDrawing+Extension.swift
//  JMDrawingLayer
//
//  Created by JunMing on 2021/1/29.
//

import UIKit

public extension CGPoint {
    static func Make(_ x: CGFloat, _ y: CGFloat) -> CGPoint {
        return CGPoint(x: x, y: y)
    }
}

public extension Float {
    var cvalue: CGFloat {
        return CGFloat(self)
    }
}

public extension CGFloat {
    var fvalue: Float {
        return Float(self)
    }
    
    var dvalue: Double {
        return Double(self)
    }
}

public extension Double {
    var fvalue: Float {
        return Float(self)
    }
    
    var cvalue: CGFloat {
        return CGFloat(self)
    }
}
